<div class="panel-group left-side" id="accordion">
    {if condition="checkPath('index/index')"}
    <div class="panel panel-default panelborder">
        <a href="{:url('index/index')}" class="act" >
            <div class="panel-heading f-Index f-index">
                <span class="glyphicon glyphicon-home pre-icon"></span>首页
            </div>
        </a>
    </div>
    {/if}
    {if condition="checkPath('momach/default')"}
    <div class="panel panel-default panelborder">
        <a data-toggle="collapse" data-parent="#accordion" href="#agent" class="act" >
            <div class="panel-heading f-Momach">
                <span class="glyphicon glyphicon-th-list pre-icon"></span>商户管理
                <span class="glyphicon glyphicon-chevron-down next-icon"></span>
            </div>
        </a>
        <div id="agent" class="panel-collapse collapse">
            <div class="panel-body pad0 light">
                <ul>
                    {if condition="checkPath('momach/addmomach')"}
                    <li class="Momach-addmomach"><a href="{:url('momach/addmomach')}">添加商户</a></li>
                    {/if}
                    {if condition="checkPath('momach/momachlist')"}
                    <li class="Momach-momachlist Momach-momachdevicegl Mach-momachinfo Momach-machinfo Mach-momachxg Momach-machlist Momach-momachxg Momach-momachinfo"><a href="{:url('momach/momachlist')}">商户列表</a></li>
                    {/if}
                    {eq name=":session('agentloginid')" value="15"}

                    <li class="Momach-machtobank Momach-wxmachtobank Momach-machtobanklist Momach-machtobankedit"><a href="{:url('momach/machtobanklist')}">商户进件列表</a></li>

                    {/eq}
                    {eq name=":session('agentloginid')" value="59"}

                    <li class="Momach-machtobank Momach-wxmachtobank Momach-machtobanklist Momach-machtobankedit"><a href="{:url('momach/machtobanklist')}">商户进件列表</a></li>

                    {/eq}
                    {if condition="checkPath('momach/momachdevicegllist')"}

                    <li class="Momach-momachdevicegllist"><a href="{:url('momach/momachdevicegllist')}">设备授权</a></li>
                    {/if}

                </ul>
            </div>
        </div>
    </div>
    {/if}
    {if condition="checkPath('agents/default')"}
    <div class="panel panel-default panelborder">
        <a data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" class="act" >
            <div class="panel-heading f-Agents">
                <span class="glyphicon glyphicon-th-list pre-icon"></span>服务商信息管理
                <span class="glyphicon glyphicon-chevron-down next-icon"></span>
            </div>
        </a>
        <div id="collapseTwo" class="panel-collapse collapse">
            <div class="panel-body pad0 light">
                <ul>
                    {if condition="checkPath('agents/agentxg')"}
                    <li class="Agents-agentxg Agents-agentinfo"><a href="{:url('agents/agentinfo')}">查看服务商信息</a></li>
                    {/if}
                </ul>
            </div>
        </div>
    </div>
    {/if}
    {if condition="checkPath('personnel/default')"}
    <div class="panel panel-default panelborder">
        <a data-toggle="collapse" data-parent="#accordion" href="#collapseFour" class="act">
            <div class="panel-heading f-Personnel">
                <span class="glyphicon glyphicon-user pre-icon"></span>业务员管理
                <span class="glyphicon glyphicon-chevron-down next-icon"></span>
            </div>
        </a>
        <div id="collapseFour" class="panel-collapse collapse " >
            <div class="panel-body pad0 light ">
                <ul>
                    {if condition="checkPath('personnel/salesmanadd')"}
                    <li class="Personnel-salesmanadd"><a href="{:url('personnel/salesmanadd')}">添加业务员</a></li>
                    {/if}
                    {if condition="checkPath('personnel/salesmanlist')"}
                    <li class="Personnel-salesmanlist Personnel-salesmanxg Personnel-salesmaninfo Personnel-salesmanedit Personnel-salesmanlist"><a href="{:url('personnel/salesmanlist')}">业务员列表</a></li>
                    {/if}
                </ul>
            </div>
        </div>
    </div>
    {/if}
    {if condition="checkPath('pay/default')"}
    <div class="panel panel-default panelborder">
        <a data-toggle="collapse" data-parent="#accordion" href="#collapseThree" class="act">
            <div class="panel-heading f-Pay ">
                <span class="glyphicon glyphicon-usd pre-icon"></span>交易中心
                <span class="glyphicon glyphicon-chevron-down next-icon"></span>
            </div>
        </a>
        <div id="collapseThree" class="panel-collapse collapse">
            <div class="panel-body pad0 light ">
                <ul>
                    {if condition="checkPath('pay/paycount')"}
                    <li class="Pay-paycount"><a href="{:url('pay/paycount')}">交易统计</a></li>
                    {/if}
                    {if condition="checkPath('pay/reportform')"}
                    <li class="Pay-reportform"><a href="{:url('pay/reportform')}">交易报表</a></li>
                    {/if}
                    {if condition="checkPath('pay/paylog')"}
                    <li class="Pay-paylog"><a href="{:url('pay/paylog')}">交易明细</a></li>
                    {/if}
                </ul>
            </div>
        </div>
    </div>
    {/if}
    <div class="panel panel-default panelborder">
        <a data-toggle="collapse" data-parent="#accordion" href="#collapseEight" class="act">
            <div class="panel-heading f-newcourtesy f-Marke">
                <span class="glyphicon glyphicon-star pre-icon"></span>营销工具
                <span class="glyphicon glyphicon-chevron-down next-icon"></span>
            </div>
        </a>
        <div id="collapseEight" class="panel-collapse collapse">
            <div class="panel-body pad0 light ">
                <ul>

                    <li class="Marke-tools"><a href="{:url('marke/tools')}">活动营销</a></li>

                </ul>
            </div>
        </div>
    </div>
    {if condition="checkPath('Wxsystem/default')"}
    <div class="panel panel-default panelborder">
        <a data-toggle="collapse" data-parent="#accordion" href="#collapseSix" class="act">
            <div class="panel-heading f-System f-Wxsystem">
                <span class="glyphicon glyphicon-cog pre-icon"></span>微信管理
                <span class="glyphicon glyphicon-chevron-down next-icon"></span>
            </div>
        </a>
        <div id="collapseSix" class="panel-collapse collapse">
            <div class="panel-body pad0 light ">
                <ul>
                    {if condition="checkPath('Wxsystem/wx_menu')"}
                    <li class="Wxsystem-wx_menu"><a href="{:url('Wxsystem/wx_menu')}">自定义菜单管理</a></li>
                    {/if}
                    {if condition="checkPath('Wxsystem/wx_tplmesg')"}
                    <li class="Wxsystem-wx_tplmesg"><a href="{:url('Wxsystem/wx_tplmesg')}">模版消息管理</a>
                    {/if}
                    {if condition="checkPath('Wxsystem/wx_authinfo')"}
                    <li class="Wxsystem-wx_authinfo"><a href="{:url('Wxsystem/wx_authinfo')}">授权管理</a> 
                    {/if}
                </ul>
            </div>
        </div>
    </div>
    {/if}

    <div class="panel panel-default panelborder">
        <a data-toggle="collapse" data-parent="#accordion" href="#collapseSeven" class="act">
            <div class="panel-heading f-Xcxsysset f-Microprogram">
                <span class="glyphicon glyphicon-cog pre-icon"></span>小程序管理
                <span class="glyphicon glyphicon-chevron-down next-icon"></span>
            </div>
        </a>
        <div id="collapseSeven" class="panel-collapse collapse">
            <div class="panel-body pad0 light ">
                <ul>
                    {if condition="checkPath('xcxsysset/verset')"}
                    <li class="Xcxsysset-verset"><a href="{:url('xcxsysset/verset')}">版本管理</a></li>
                    {/if}
                    {if condition="checkPath('xcxsysset/set_xcx_domain')"}
                    <li class="Xcxsysset-set_xcx_domain"><a href="{:url('xcxsysset/set_xcx_domain')}">设置域名</a></li>
                    {/if}
                    {if condition="checkPath('xcxsysset/set_xcx_openplat')"}
                    <li class="Xcxsysset-set_xcx_openplat"><a href="{:url('xcxsysset/set_xcx_openplat')}">开放平台设置</a>
                    {/if}
                    {if condition="checkPath('microprogram/set_xcx_domain')"}
                    {eq name=":session('agentloginid')" value="15"}
                    <li class="Microprogram-set_xcx_domain"><a href="{:url('microprogram/set_xcx_domain')}">设置域名-会员卡</a></li>
                    {/eq}
                    {/if}
                    {if condition="checkPath('microprogram/sub_program')"}
                    {eq name=":session('agentloginid')" value="15"}
                    <li class="Microprogram-sub_program"><a href="{:url('microprogram/sub_program')}">代码管理-会员卡</a>
                    {/eq}
                    {/if}
                </ul>
            </div>
        </div>
    </div>

</div>